/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.sevenpriciples.isp.isp.violation.impl;

import za.ac.cput.sevenpriciples.isp.isp.violation.Employee;

/**
 *
 * @author 210227257
 */
public class AnnualSalaryImpl implements Employee{
    private double salary;
    
    public AnnualSalaryImpl(double salary){
        this.salary = salary;
    }

    public AnnualSalaryImpl() {
        
    }
    @Override
    public void setName(String name) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public String getName() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void setSurname(String surname) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public String getSurname() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void setAccountNumber(int account) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public int getAccountNumber() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public double getSalary() {
        return this.salary;
    }
    
    public double annualSalary(){
        return this.getSalary() * 12;
    }

    @Override
    public String information() {
        return String.format("Annual Salary: %.2f", this.annualSalary());
    }
}
